EA Setup – MetaTrader 5

1. Select your MT5 Webhook

Choose the MT5 webhook you want to configure.
image48.jpg

On the Dashboard page, go to the ‘Download EA’ section and click ‘Download'.
image41_mt5.jpg

3. Place the EA in Experts folder

In MT5, click ‘Open data folder'.
image30_mt5.jpg

Navigate to MQL5, then open the Experts folder.
image31_mt5.jpg

image32_mt5.jpg
Copy and paste the EA file into the Experts folder.
image33_mt5.jpg

4. Allow WebRequest for listed URL

Click “Tools” → “Options”
Tick 'Allow algorithmic trading', 'Allow DLL imports' and add following URL:
https://tradingviewlink.com
image42_mt5.jpg

5. Enable Auto Trading

Ensure that ‘AutoTrading’ button is in green.
image40_mt5.jpg

6. Refresh the EA Section in MT5

Click ‘Refresh’ in the EA section. The TradingView Link EA should appear.
Note: You only need to run the EA on one of the charts with any timeframe in order to trade all symbols in MT5.
image35_mt5.jpg
To trade a specific symbol, ensure it’s added to the symbol list. A colored dollar sign indicates it’s active.
Pasted image 20240728223042.png

7. Set up EA and Input Parameters

Tick 'Allow Algo Trading'
image36_mt5.jpg

For ID please input your webhook ID for TradingView Link. For other parameters, please refer to the ‘Documentation’ section.
image44_mt5_1.jpg
image41_mt5.jpg
For example, it is needed to input 66aef1285daa12b2caa2b62d in the webhook ID field.

8. Set up webhook Password

Before sending alert messages from Telegram or TradingView, you need to generate a webhook password. In the Dashboard’s settings, click ‘Add Secret’ to create it.
image37_mt5.jpg

image38_mt5.jpg
Note: Please save the password as it will not be shown again. If you forget the password, you can delete the password and generate a new one. Changing the password will require setting up the Telegram bot and TradingView alert again.

9. Set up webhook on TradingView Alert

To automate TradingView strategy signals, copy the webhook URL from the Dashboard into the TradingView alert section. For the syntax of TradingView alert messages, please refer to ‘Components of Alert Message’ section.
image45_mt5.jpg

10. Connect Webhook ID to Telegram Bot (Optional)

You may choose to link your webhook ID with our Telegram bot to enable tracking of alert records from TradingView through TradingView Link to MetaTrader, as well as to send order execution instructions directly from Telegram to MetaTrader. We recommend considering this feature for its efficiency in monitoring alerts and streamlining trade execution. To proceed, please send the following command to the bot:

/setup Webhook ID Password of Webhook ID

Pasted image 20240423234322.png

If correct, you will get a confirmation reply:
image014.jpg

Note: Once setup, it is not needed to fill in password for webhook ID when sending trading messages from Telegram

Example:
image016.jpg

Should you manage multiple webhooks and wish to configure them within a single Telegram account, you may create a Telegram Group for each webhook, add the TradingView Link Telegram bot to the group, and designate it as an administrator to grant it permission to access and read messages. Subsequently, repeat the aforementioned Telegram bot setup process for each webhook.
image49.jpg

11. Alert Sharing (optional)

Available only on the Pro plan, this feature lets you share alerts between MT5-to-MT5 or MT4-to-MT4 accounts.
Configure shared targets in the Alert Sharing section of your Pro plan account by clicking ‘Add’ in the Shared Target field.

image22_00.jpg
image22copy.jpg
You will get a shared target ID. Input the shared target ID on the TradingView Link EA in the MT5 trading account that you would like to share your signal to:
image23copy.jpg
Signals to the Pro account will be shared to the shared target onwards once setup.
Trading account with Pro account webhook:
image020_main webhook.jpg
Trading account with shared target ID:
image021_shared webhook.jpg

To stop the alert sharing to this target, click ‘Remove’ in the Shared Targets field.
image24copy.jpg